<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/hi/hiRule.js"></script>
  </head>
  <body>
<form id="data-form">
	<div class="form_item">
			<input  type="hidden" name="id" value="${hiRuleVo.id}"/>
         <dl>
       		   <dt>分类：</dt>
	           <dd>
	        	<select name="classify">
	        		<c:forEach items="${classifyList}" var="item">
						<option value="${item.code}"
							<c:if test="${hiRuleVo != null && hiRuleVo.classify==item.code}"> selected="selected"</c:if>
						>${item.desc}</option>
					</c:forEach>
				</select>
	          </dd>
         </dl>
          <dl>
       		   <dt>条件：</dt>
	           <dd>
	        	<select name="compare">
					<option value="1"
						<c:if test="${hiRuleVo != null && hiRuleVo.compare==1}"> selected="selected"</c:if>
					>大于</option>
					<option value="2"
						<c:if test="${hiRuleVo != null && hiRuleVo.compare==2}"> selected="selected"</c:if>
					>等于</option>
					<option value="3"
						<c:if test="${hiRuleVo != null && hiRuleVo.compare==3}"> selected="selected"</c:if>
					>小于</option>
				</select>
	          </dd>
         </dl>
		<dl>
		       <dt>条件值：</dt>
		       <dd><input type="text" name="compareValue" value="${hiRuleVo.compareValue }" class="txt grid-25" maxlength="32"/></dd>
		</dl>
		<dl>
		       <dt>规则名称：</dt>
		       <dd><input type="text" name="name" value="${hiRuleVo.name }" class="txt grid-25" maxlength="32"/></dd>
		</dl>
		<dl>
			   <dt>规则描述：</dt>
			   <dd><textarea maxlength="8000" class="txt grid-75" id="desc" name="desc" oninput="admin.hiRule.netMsgChange('desc',360)" onpropertychange="admin.hiRule.netMsgChange('desc',360)" rows="4" >${hiRuleVo.desc}</textarea></dd>
		</dl>
		<dl>
		       <dt>奖励圈币值：</dt>
		       <dd><input type="text" name="quanValue" value="${hiRuleVo.quanValue }" class="txt grid-25" maxlength="32"/></dd>
		</dl> 
		<dl>
		       <dt>奖励荣誉值：</dt>
		       <dd><input type="text" name="honorValue" value="${hiRuleVo.honorValue }" class="txt grid-25" maxlength="32"/></dd>
		</dl> 
		<dl>
		       <dt>每日上限次数：</dt>
		       <dd><input type="text" name="limitDayTimes" value="${hiRuleVo.limitDayTimes }" class="txt grid-25" maxlength="32"/></dd>
		</dl>
		<dl>
		       <dt>上限数量：</dt>
		       <dd><input type="text" name="limitQuantity" value="${hiRuleVo.limitQuantity }" class="txt grid-25" maxlength="32"/></dd>
		</dl>
         <dl>
       		   <dt>类型：</dt>
	           <dd>
	        	<select name="taskType">
					<option value="1"
						<c:if test="${hiRuleVo != null && hiRuleVo.taskType==1}"> selected="selected"</c:if>
					>新手任务</option>
					<option value="2"
						<c:if test="${hiRuleVo != null && hiRuleVo.taskType==2}"> selected="selected"</c:if>
					>连续任务</option>
				</select>
	          </dd>
         </dl>
         <dl>
       		   <dt>计算类型：</dt>
	           <dd>
	        	<select name="calculationType">
					<option value="1"
						<c:if test="${hiRuleVo != null && hiRuleVo.calculationType==1}"> selected="selected"</c:if>
					>按整数计算</option>
					<option value="2"
						<c:if test="${hiRuleVo != null && hiRuleVo.calculationType==2}"> selected="selected"</c:if>
					>按比例计算</option>
				</select>
	          </dd>
         </dl>
         <dl>
			<dt>分组类型：</dt>
			<dd>
				<select name="groupType" id="groupType">
				<c:forEach items="${groupTypeList}" var="item">
					<option value="${item.code}" 
					<c:if test="${hiRuleVo != null && hiRuleVo.groupType==item.code}"> selected="selected"</c:if>
					>${item.desc}</option>
				</c:forEach>
				</select>
			</dd>
		</dl>
		<p class="page_btn"><input type="button" id="saveBtn" value="保存" class="btn_blue" onclick="admin.hiRule.doUpdate();"/></p>
	</div>
</form>
</body>
</html>
